package com.jdrx.sw.sewage.beans.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "NewsAddDTO", description = "新增新闻")
public class NewsAddDTO {

    @ApiModelProperty(value = "主键id（更新必传）", required = true)
    private Long id;

    @NotNull
    @ApiModelProperty(value = "标题", required = true)
    private String title;

    @NotNull
    @ApiModelProperty(value = "新闻内容", required = true)
    private String newsContent;

    @NotNull
    @ApiModelProperty(value = "更新人id", required = true)
    private Long updateById;

    @NotNull
    @ApiModelProperty(value = "更新人")
    private String updateBy;
}